﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Software41.Tracking.Model
{
    public class StepInfo
    {
        public string ActivityID { get; set; }
        public DateTime Begin { get; set; }
        public DateTime? End { get; set; }
        public double? Duration { get; set; }
        public string Name { get; set; }
        public string SuccessInternal { get; set; }

        public bool? Success
        {
            get
            {
                bool? retVal = null;

                if (this.SuccessInternal == "1")
                    retVal = true;
                if (this.SuccessInternal == "0")
                    retVal = false;

                return retVal;
            }
        }

        public List<ActionInfo> ActionInfos { get; set; }
        public List<LogDetail> LogDetails { get; set; }

        public ExceptionDetail ExceptionDetail { get; set; }
        public List<DocReferenceData> ReferenceData { get; set; }
   
    }
}
